package com.baizhi.springmvc.service.imp;


import com.baizhi.springmvc.dao.ItemDao;
import com.baizhi.springmvc.entity.Item;
import com.baizhi.springmvc.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemServiceImp implements ItemService {
    @Autowired
    private ItemDao itemDao;
    @Override
    public void insert(Item item) {
        itemDao.insert(item);
    }

    @Override
    public void deleteItem(Integer item_id) {
        itemDao.deleteItem(item_id);
    }
}
